function main(serial_number,details)
    picture_name="frame"+num2str(serial_number)+"(1).jpg";
    disp(picture_name);
    I=imread(picture_name);
    % figure
    % subplot(2,2,1),
    % imshow(I);
    thresh = 0.27;
    % thresh = graythresh(I);    % 自动确定二值化阈值
    disp("thresh:");
    disp(thresh);
    I1 = imbinarize(I,thresh);    % 对图像二值化
    % subplot(2,2,2),
    % figure;
    % imshow(I1);

    % attempt
    rad=10;
    I1=imdilate(I1,strel('disk',rad));

    imwrite(I1,num2str(serial_number)+".eroded.jpg");

    I2=~I1; % 对二值化图片求反片

    % if details~=0
    %     figure
    %     subplot(2,2,3),
    %     imshow(I2);
    % end
    
    target_size=1;

    [centers, radii, metric] = imfindcircles(I2,[10, 20],"Sensitivity",1);
    % target_size=3;
    % centersStrong = centers(1:target_size,:); 
    % radiiStrong = radii(1:target_size);
    % metricStrong = metric(1:target_size);
    % viscircles(centers, radii,'EdgeColor','r');
    target_size=1;
    centersStrong = centers(1:target_size,:); 
    radiiStrong = radii(1:target_size);
    metricStrong = metric(1:target_size);
    figure;
    imshow(I);
    viscircles(centersStrong, radiiStrong,'EdgeColor','b');


end
